import request from "@/utils/request";
// 调用权限
export default {
  //通知配置
  getCustomNotices(data) {
    return request({
      url: "/api/workflows/custom_notices/",
      method: "get",
      params: data
    });
  },
  //添加通知配置
  addCustomNotices(data) {
    return request({
      url: "/api/workflows/custom_notices/",
      method: "post",
      data: data
    });
  },
  //添加通知配置
  editCustomNotices(id, data) {
    return request({
      url: "/api/workflows/custom_notices/" + id + "/",
      method: "put",
      data: data
    });
  },
  //删除通知配置
  deleteCustomNotices(id) {
    return request({
      url: "/api/workflows/custom_notices/" + id + "/",
      method: "delete"
    });
  }
};
